package com.motu.vertx.module.utility.base;

public class Platform {

    public final static int PLATFORM_ANDROID_OFFICIAL = 3;// 魔兔安卓官方
    public final static int PLATFORM_BILIBILI = 6;// bilibili

    public final static int PLATFORM_WECHAT_GAME = 1002;// 微信小游戏

    public final static int PLATFORM_37 = 2118;// 37互娱

    public final static int PLATFORM_APPSTORE = 3001;// 国际版AppStore
    public final static int PLATFORM_GOOGLE_PLAY = 3101;// 国际版Google

    public final static int PLATFORM_QOOAPP = 3102;// QooApp
    public final static int PLATFORM_HUAWEI = 3103;// 华为

    public final static int PLATFORM_XINGHUI_IOS = 4001;// 星辉ios
    public final static int PLATFORM_XINGHUI_ANDROID = 4101;// 星辉安卓

    public static final int PLATFORM_MUYOU_IOS = 4002;// 沐游IOS
    public static final int PLATFORM_MUYOU_ANDROID = 4102;// 沐游ANDROID

    public static final int PLATFORM_UJOY_IOS = 4003;// Ujoy IOS
    public static final int PLATFORM_UJOY_ANDROID = 4103;// Ujoy ANDROID

    public static final int PLATFORM_VNG_IOS = 4004;// VNG IOS
    public static final int PLATFORM_VNG_ANDROID = 4104;// VNG ANDROID

    public static final int PLATFORM_EFUN_IOS = 4007;// VNG IOS
    public static final int PLATFORM_EFUN_ANDROID = 4107;// VNG ANDROID

    /**
     * 是否是星辉渠道
     */
    public static boolean isXinghui(int platform) {
        return platform == PLATFORM_XINGHUI_IOS || platform == PLATFORM_XINGHUI_ANDROID;
    }

    /**
     * 是否是37互娱渠道
     */
    public static boolean is37(int platform) {
        return platform == PLATFORM_37;
    }

    /**
     * 是否是Efun渠道
     */
    public static boolean isEfun(int platform) {
        return platform == PLATFORM_EFUN_IOS || platform == PLATFORM_EFUN_ANDROID;
    }

    /**
     * 是否是bilibili渠道
     */
    public static boolean isBilibili(int platform) {
        return platform == PLATFORM_BILIBILI;
    }

    /**
     * 是否是微信小游戏渠道
     */
    public static boolean isWechatGame(int platform) {
        return platform == PLATFORM_WECHAT_GAME;
    }

}
